package router

import (
	v1 "gintify/api/v1"
	"github.com/gin-gonic/gin"
)

func RegisterCasbinBlueprint(Router *gin.RouterGroup) {
	// Casbin控制器
	c := v1.NewCasbinController()

	// Casbin路由组
	r := Router.Group("/casbin")
	{
		r.POST("", c.Post)
		r.GET("", c.GetList)
		r.GET("/:id", c.Get)
		r.PUT("/:id", c.Put)
		r.PATCH("/:id", c.Patch)
		r.DELETE("/:id", c.Delete)
	}
}
